from django.urls import path, include
from rest_framework.routers import DefaultRouter
from course.views import BookViewSet, CategoryViewSet
router = DefaultRouter()
router.register('book', BookViewSet, basename='book')
router.register('cate', CategoryViewSet, basename='category')
urlpatterns = [
    path('', include(router.urls)),
]